////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012 Kentaro Sekimoto  All rights reserved.
////////////////////////////////////////////////////////////////////////////

#include <tinyhal.h>

#ifdef TEST_LCD
#include "sample_bmp.h"

#if defined(PLATFORM_ARM_WXMP3PLCD_FM3)
unsigned short P8_LCD_read_dat(volatile unsigned short index);

void LCD_reg_dump(void)
{
    int i = 0;
    for (i = 0; i < 1; i++) {
        debug_printf("LCD reg[%02x] = %04x\r\n", i, P8_LCD_read_dat((volatile unsigned short)i));
    }
}
#endif

void TestLCD(void)
{
    LCD_Initialize();
    LCD_Clear();
    LCD_BitBltEx(0, 0, 100, 128, (UINT32 *)bmp);
}
#endif
